package cn.roadtrip.utilmodule.wechat;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.NoArgsConstructor;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.stereotype.Component;


@Component
@Data
@AllArgsConstructor
@NoArgsConstructor
@ConfigurationProperties(prefix = "wechat")
public class WeiChatConfig {
    private WechatMiniProm wchatminiprom;
    /**
     * 微信小程序
     */
    @Data
    @EqualsAndHashCode
    @AllArgsConstructor
    @NoArgsConstructor
    public  static class WechatMiniProm{
        private String appId;
        private String secret;
    }


    private WechatPublish wchatpub;
    /**
     * 微信公众号
     */
    @Data
    @EqualsAndHashCode
    @AllArgsConstructor
    @NoArgsConstructor
    public  static class WechatPublish{
        private String appId;
        private String secret;
    }
}
